package com.resys.service;

import java.util.List;

import com.resys.entity.query.RoomdeviceQuery;
import com.resys.entity.po.Roomdevice;
import com.resys.entity.vo.PaginationResultVO;


/**
 *  业务接口
 */
public interface RoomdeviceService {

	/**
	 * 根据条件查询列表
	 */
	List<Roomdevice> findListByParam(RoomdeviceQuery param);

	/**
	 * 根据条件查询列表
	 */
	Integer findCountByParam(RoomdeviceQuery param);

	/**
	 * 分页查询
	 */
	PaginationResultVO<Roomdevice> findListByPage(RoomdeviceQuery param);

	/**
	 * 新增
	 */
	Integer add(Roomdevice bean);

	/**
	 * 批量新增
	 */
	Integer addBatch(List<Roomdevice> listBean);

	/**
	 * 批量新增/修改
	 */
	Integer addOrUpdateBatch(List<Roomdevice> listBean);

	/**
	 * 多条件更新
	 */
	Integer updateByParam(Roomdevice bean,RoomdeviceQuery param);

	/**
	 * 多条件删除
	 */
	Integer deleteByParam(RoomdeviceQuery param);

	/**
	 * 根据RoomIdAndDeviceId查询对象
	 */
	Roomdevice getRoomdeviceByRoomIdAndDeviceId(Integer roomId,Integer deviceId);


	/**
	 * 根据RoomIdAndDeviceId修改
	 */
	Integer updateRoomdeviceByRoomIdAndDeviceId(Roomdevice bean,Integer roomId,Integer deviceId);


	/**
	 * 根据RoomIdAndDeviceId删除
	 */
	Integer deleteRoomdeviceByRoomIdAndDeviceId(Integer roomId,Integer deviceId);

}